home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 6: Level 6
/
17 Bit - Level 6 (1998)(Epic Marketing)[!].iso
/
quartz
/
q0527.dms
/
q0527.adf
/
assert.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-02-02
|
506b
|
29 lines
/*
* ASSERT.H
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*
* relatively optimized, takes advantage of GNU-cpp __BASE_FILE__ macro
* allowing us to store the filename string once in a static decl.
*/
#ifndef _ASSERT_H
#define _ASSERT_H
static char *__BaseFile = __BASE_FILE__;
extern void __FailedAssert(char *, int);
#ifndef assert
#ifdef NDEBUG
#define assert(ignore)
#else
#define assert(exp) if (!(exp)) __FailedAssert( __BaseFile, __LINE__);
#endif
#endif
#endif